﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TurtleLib.ComputerCraft
{
  public partial class Monitor : Term, IPeripheral
  {
    private Monitor _hostMonitor;
    protected const int standalone_width = 7;
    protected const int standalone_height = 5;

    public Monitor()
      : this(standalone_width, standalone_height)
    {
    }

    protected Monitor(int w, int h)
      : base(w, h)
    {
      _hostMonitor = this;
    }

    private void SetHost(Monitor host)
    {
      _hostMonitor = host;
    }

    internal Monitor GetHost()
    {
      return _hostMonitor;
    }
  }
}
